/**
 * @ author: 汪孟苹
 */
define([],function(){
	var tpl = {};

	/* 创建模态框 */
	tpl.createModalInit = function(){
		var html = '';
		html += createModal();
		return html;
	};
	tpl.modalInit = function(){
		var html = '';
		html += modal();
		return html;
	};
	/* 创建div */
	tpl.createDivInit = function(){
		var html = '';
		html += createDiv();
		return html;
	};
	/* selectQueue */
	tpl.selectQueueInit = function(){
		var html = '';
		html += selectQueue();
		return html;
	};
	/* 创建模态框 */
	var createModal = function(){
		return 	'<script id="tpl_comm_createModal" type="text/html">'+
				'	<div class="modal fade {{className}}" tabindex="-1" role="dialog">'+
				'		<div class="modal-dialog {{size}}" role="document">'+
				'   		<div class="modal-content">'+
				'	    		<div class="modal-header">'+
				'	        		<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>'+
				'	        		<h4 class="modal-title tc">{{tit}}</h4>'+
				'	    		</div>'+
				'	    		<div id="{{id}}" class="modal-body"></div>'+
				'				{{if showModalFooter}}'+
				'				<div id={{footerId}} class="modal-footer"></div>'+
				'				{{/if}}'+
				'    		</div>'+
			  	'		</div>'+
			  	'	</div>';
				'</script>';
	};
	var modal = function(){
		return 	'<script id="tpl_comm_modal" type="text/html">'+
				'	<div class="modal fade {{className}}" tabindex="-1" role="dialog">'+
				'		<div class="modal-dialog {{size}}" role="document">'+
				'   		<div class="modal-content">'+
				'	    		<div class="modal-header">'+
				'	        		<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>'+
				'	        		<div class="modal-title tc">{{tit}}</div>'+
				'	    		</div>'+
				'	    		<div class="modal-body"></div>'+
				'				{{if showModalFooter}}'+
				'				<div class="modal-footer"></div>'+
				'				{{/if}}'+
				'    		</div>'+
			  	'		</div>'+
			  	'	</div>';
				'</script>';
	};
	var createDiv = function(){
		return 	'<script id="tpl_comm_createDiv" type="text/html">'+
				'	<div id="{{id}}" class="curve"></div>'+
				'</script>';
	}
	/* selectQueue */
	var selectQueue = function(){
		return 	'<script id="tpl_comm_selectQueue" type="text/html">'+
				'	  	<option value="">全部队列</option>'+
				'		{{each rows as value i}}'+
				'	  	<option value="{{value.id}}">{{value.queueName}}</option>'+
				'		{{/each}}'+
				'</script>';
	};

	return tpl;
});